﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="SearchBug.aspx.cs" Inherits="SearchBug" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CustomJavascript" runat="Server">

    <link href="/css/agent_admin.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FlashMessage" runat="Server">
    Enter your keywords below to start searching
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="tabs-search" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
        <div id="agent_search_tab" class="cols_no_height interaction_panel whole_width_interaction" style="background: #fff;">
            <div id="search_toolbar" class="search_toolbar">
                <div class="search_toolbar_inside" style="margin-top: -7px; margin-left: 5px;">
                    <div class="row_name">
                        Search
                    </div>
                    <div class="row_desc">
                        Search across users, projects, and bugs information
                    </div>
                </div>
            </div>
            <div id="agent_search_main_part">
                <div class="agent_search_main_part_inside">
                    <div class="agent_search_main_part_inside_center">
                        <asp:TextBox  class="default xl hint_text" ID="searchtxt" MaxLength="100" name="txtsearch" Text="" size="100" Style="width: 400px; padding: 6px ; " runat="server" ></asp:TextBox>
                        <div style="display: inline-block; zoom: 1; *display: inline; position: relative; top: 10px; left: 5px">
                            <asp:RadioButton ID="rdUser" Style="margin-right: 3px;" value="100" GroupName="SearchName" AutoPostBack="True" OnCheckedChanged="rdUser_CheckedChanged" runat="server" />User<br />
                            <asp:RadioButton Checked="true" ID="rdBug" Style="margin-right: 3px;" value="200" GroupName="SearchName" runat="server" />Bug
                        </div>
                        <span class="input button" style="margin-left: 10px;">
                            <asp:Button class="blue_highlight search_detailed" runat="server" Text="Search" ID="btnSearch" onclick="btnSearch_Click" />
                            <span class="icon">&nbsp; </span><span class="text "></span>
                        </span>
                        <div style="margin-top: 5px;">
                            <asp:LinkButton ID="lbtnAdvancedSearch" runat="server" OnClick="lbtnAdvancedSearch_Click" Text="Advanced Search">
                            </asp:LinkButton>
                        </div>
                        <!-- begin here -->
                        <div class="<asp:Literal ID="ltrSearchAdvanced" runat="server"></asp:Literal>">
                            <div class="a-field">
                                <label>Last Updated</label>
                                <div class="a-select">
                                    <asp:DropDownList runat="server" ID="dllrecentBug">
                                        <asp:ListItem Value="0">Today</asp:ListItem>
                                        <asp:ListItem Value="3">Within 3 days</asp:ListItem>
                                        <asp:ListItem Value="7">Within a week</asp:ListItem>
                                        <asp:ListItem Value="30">Within a month</asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="a-field">
                                <label>Status</label>
                                <div class="a-select">
                                    <asp:DropDownList runat="server" ID="ddlStatus">
                                    </asp:DropDownList>
                                </div>
                                <div class="a-field">
                                    <label>Type of Bug</label>
                                    <div class="a-select">
                                        <asp:DropDownList runat="server" ID="DDLTypeOfBug">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <!--Creating dropdown list to choose severity-->
                                <div class="a-field">
                                    <label>Severity</label>
                                    <div class="a-select">
                                        <asp:DropDownList runat="server" ID="dllSeverity">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <!--Creating dropdown list to choose priority-->
                                <div class="a-field">
                                    <label>Priority</label>
                                    <div class="a-select">
                                        <asp:DropDownList runat="server" ID="dllPriority">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- End here -->
                        <div class="agent_search_main_saved_search_header">
                            <img alt="Search_saved" class="agent_icon_button" src="images/search_saved.png" height="16" width="16" />
                            Result(s) below
                        </div>
                    </div>
                    <div class="a-field">
                        <asp:DataList ID="DataList1" runat="server" DataKeyField="BugId">
                            <ItemTemplate>
                                BugId:
                                <asp:Label ID="BugIdLabel" runat="server" Text='<%# Eval("BugId") %>' />
                                <br />
                                ProjectId:
                                <asp:Label ID="ProjectIdLabel" runat="server" Text='<%# Eval("ProjectId") %>' />
                                <br />
                                Type:
                                <asp:Label ID="TypeLabel" runat="server" Text='<%# Eval("Type") %>' />
                                <br />
                                Summary:
                                <asp:Label ID="SummaryLabel" runat="server" Text='<%# Eval("Summary") %>' />
                                <br />
                                Reproducability:
                                <asp:Label ID="ReproducabilityLabel" runat="server" Text='<%# Eval("Reproducability") %>' />
                                <br />
                                BugFoundInVersion:
                                <asp:Label ID="BugFoundInVersionLabel" runat="server" Text='<%# Eval("BugFoundInVersion") %>' />
                                <br />
                                BugFoundInComponent:
                                <asp:Label ID="BugFoundInComponentLabel" runat="server" Text='<%# Eval("BugFoundInComponent") %>' />
                                <br />
                                Status:
                                <asp:Label ID="StatusLabel" runat="server" Text='<%# Eval("Status") %>' />
                                <br />
                                Severity:
                                <asp:Label ID="SeverityLabel" runat="server" Text='<%# Eval("Severity") %>' />
                                <br />
                                ReportedUser:
                                <asp:Label ID="ReportedUserLabel" runat="server" Text='<%# Eval("ReportedUser") %>' />
                                <br />
                                ReportedDate:
                                <asp:Label ID="ReportedDateLabel" runat="server" Text='<%# Eval("ReportedDate") %>' />
                                <br />
                                LastUpdatedUser:
                                <asp:Label ID="LastUpdatedUserLabel" runat="server" Text='<%# Eval("LastUpdatedUser") %>' />
                                <br />
                                LastUpdatedDate:
                                <asp:Label ID="LastUpdatedDateLabel" runat="server" Text='<%# Eval("LastUpdatedDate") %>' />
                                <br />
                                Priority:
                                <asp:Label ID="PriorityLabel" runat="server" Text='<%# Eval("Priority") %>' />
                                <br />
                                Resolution:
                                <asp:Label ID="ResolutionLabel" runat="server" Text='<%# Eval("Resolution") %>' />
                                <br />
                                Description:
                                <asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
                                <br />
                                ReproductionSteps:
                                <asp:Label ID="ReproductionStepsLabel" runat="server" Text='<%# Eval("ReproductionSteps") %>' />
                                <br />
                                Logs:
                                <asp:Label ID="LogsLabel" runat="server" Text='<%# Eval("Logs") %>' />
                                <br />
                                User_Bugs:
                                <asp:Label ID="User_BugsLabel" runat="server" Text='<%# Eval("User_Bugs") %>' />
                                <br />
                                BugComments:
                                <asp:Label ID="BugCommentsLabel" runat="server" Text='<%# Eval("BugComments") %>' />
                                <br />
                                User:
                                <asp:Label ID="UserLabel" runat="server" Text='<%# Eval("User") %>' />
                                <br />
                                User1:
                                <asp:Label ID="User1Label" runat="server" Text='<%# Eval("User1") %>' />
                                <br />
                                Project:
                                <asp:Label ID="ProjectLabel" runat="server" Text='<%# Eval("Project") %>' />
                                <br />
<br />
                            </ItemTemplate>
                        </asp:DataList>
                    </div>
                </div>
            </div>
            <div id="search_manage_menu" class="cols_no_height interaction_panel right_col_no_top" style="display: none;">
                <div id="search_manage_menu_inside">
                </div>
            </div>
            <div class="faded_tab">
                <div class="faded_div">
                </div>
                <div id="search_faded_text_tab" class="faded_text_tab" style="background: #fff;">
                </div>
            </div>
</asp:Content>